package com.zx.idc.backend.gui.scheduler.report.shield;

import com.zx.idc.ds.report.rshield.service.IRShieldWeekService;
import org.quartz.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;


/**
 * 屏蔽统计周报 job
 */
@PersistJobDataAfterExecution
@DisallowConcurrentExecution
public class RShieldWeekJob implements Job {

    private static final Logger LOG = LoggerFactory.getLogger(RShieldWeekJob.class);

    @Autowired
    private IRShieldWeekService shieldWeekService;

    @Override
    public void execute(JobExecutionContext context) throws JobExecutionException {
        LOG.info("Aggregate shield weekly report job start...");
        shieldWeekService.aggregate();
        LOG.info("Aggregate shield weekly report job done.");
    }

}
